home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
var
/
lib
/
dpkg
/
info
/
bluez.postinst
< prev
next >
Wrap
Text File
|
2008-10-26
|
2KB
|
58 lines
#!/bin/sh
# snippet from http://www.dpkg.org/dpkg/ConffileHandling
# Move a conffile without triggering a dpkg question
mv_conffile() {
OLDCONFFILE="$1"
NEWCONFFILE="$2"
if [ -e "$OLDCONFFILE" ]; then
echo "Preserving user changes to $NEWCONFFILE ..."
mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new
mv -f "$OLDCONFFILE" "$NEWCONFFILE"
fi
}
set -e
case "$1" in
configure)
if [ -e /etc/init.d/bluez-utils ]; then
/usr/sbin/update-rc.d -f bluez-utils remove
# maybe a (medium/low debconf?) notice is best suited here
fi
# use MAKEDEV instead of the original bluez script below as per policy 10.6
if [ -x /dev/MAKEDEV ]; then
echo "Creating device nodes ..."
cd /dev && ./MAKEDEV bluetooth 1>/dev/null 2>/dev/null
fi
# reload dbus config file
if [ -x /etc/init.d/dbus ]; then
invoke-rc.d dbus force-reload || true
fi
#reload udev rules
if [ -x /etc/init.d/udev ]; then
invoke-rc.d udev reload || true
fi
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/bluetooth" ]; then
update-rc.d bluetooth start 25 2 3 4 5 . stop 74 0 1 6 . >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d bluetooth start || exit $?
else
/etc/init.d/bluetooth start || exit $?
fi
fi
# End automatically added section